package com.tieto.wiankowski.plyty.ejb.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/*@NamedQueries({ 
	@NamedQuery(name = "Inventory.findAll", query = "FROM INVENTORY i ORDER BY i.EXTERNALID")
})*/
@Entity
public class Inventory {

	@Id
	@GeneratedValue
	private int id;
	
	@Column(length = 100 ,nullable = false)
	private String externalId;
	
	@Enumerated(EnumType.STRING)
	@Column(length=32,nullable = false)
	private Status status;
	
	@Enumerated(EnumType.STRING)
	@Column(length=32,nullable = false)
	private Type type;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getExternalId() {
		return externalId;
	}
	public void setExternalId(String externalId) {
		this.externalId = externalId;
	}
	public Status getStatus() {
		return status;
	}
	public void setStatus(Status status) {
		this.status = status;
	}
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}
	
	
	
}
